import React,{useState,useEffect} from 'react'
import Transfer from '@/pages/components/transfer'
export default function activityInfoActivity(props:any) {

    const [activityData,setActivityData]:any = useState({})
    const list = [
      {
        key:1,
        title:'老大'
      },
      {
        key:2,
        title:'老二'
      },
      {
        key:3,
        title:'老3'
      },
      {
        key:4,
        title:'老4'
      },
      {
        key:5,
        title:'老5'
      },
      {
        key:6,
        title:'老6'
      },
      {
        key:7,
        title:'老7'
      },
      {
        key:8,
        title:'老8'
      },
      {
        key:9,
        title:'老9'
      },
      {
        key:10,
        title:'老10'
      }
    ]
    const title=['同伙','叛徒']
    useEffect(()=>{
    },[props.formData])
    function chooseList(list:Array<any>){
      console.log('父组件接收到的list',list)
    }
  return (
    <div>
      <Transfer 
          data={list} 
          title={title} 
          listStyle={{width:500,height:500}}
          chooseList={chooseList}
      ></Transfer>
    </div>
  )
}
